<?php
RegisterPlugin("hitimer","ActivePlugin_hitimer");
function ActivePlugin_hitimer() {
	Add_Filter_Plugin('Filter_Plugin_Index_Begin','hitimer_moduleContent');
}
function hitimer_moduleContent(){
	global $zbp;
	if(isset($zbp->modulesbyfilename['hitimer'])){	
	$zbp->modulesbyfilename['hitimer']->Content .='<link rel="stylesheet" href="'.$zbp->host.'zb_users/plugin/hitimer/main.css" type="text/css" media="all" /><script type="text/javascript">document.writeln(unescape("%3Cscript src=\"'.$zbp->host.'zb_users/plugin/hitimer/main.js\" type=\"text/javascript\"%3E%3C/script%3E"));</script><!--Powered by www.yiwuku.com-->';
	}		
}
function hitimer_buildModulediv(){
	global $zbp;
	if(!isset($zbp->modulesbyfilename['hitimer']))	{
		$t = new Module();
		$t->Name = "你好，朋友";
		$t->FileName = "hitimer";
		$t->Source = "hitimer";
		$t->SidebarID = 0;
		$t->IsHideTitle=false;
		$t->HtmlID = "divhitimer";
 		$t->Type = "div";
 		$t->Content = "真是美好的一天！";
		$t->MaxLi=0;
		$t->Save();
	}
}
function InstallPlugin_hitimer() {
	hitimer_buildModulediv();
}
function UninstallPlugin_hitimer() {

}